package com.peter.demo.annotations.configures.configuration;

import com.peter.project.entity.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean
    public Person person1(){
        return new Person("Peter",18);
    }
}
